package com.mrdeer.merchant.convert;

import com.mrdeer.merchant.api.dto.AppDTO;
import com.mrdeer.merchant.api.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/10 0010 10:17
 */
@Mapper
public interface AppConvert {

    AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

    AppDTO entity2Dto(App entity);

    App dto2Entity(AppDTO appDTO);

    List<AppDTO> listEntity2Dto(List<App> app);
}
